// To parse this JSON data, do
//
//     final partnerShipInfoModel = partnerShipInfoModelFromJson(jsonString);

import 'dart:convert';

PartnerShipInfoModel partnerShipInfoModelFromJson(String str) => PartnerShipInfoModel.fromJson(json.decode(str));

String partnerShipInfoModelToJson(PartnerShipInfoModel data) => json.encode(data.toJson());

class PartnerShipInfoModel {
  PartnerShipInfoModel({
    this.id,
    this.source,
    this.userId,
    this.name,
    this.idType,
    this.idNo,
    this.mobile,
    this.address,
    this.officeTelephone,
    this.area,
    this.cost,
    this.commissionRate,
    this.totalIncome,
    this.withdrawalAmount,
    this.ytdIncome,
    this.idleNum,
    this.runningNum,
    this.totalDevNum,
    this.status,
    this.createTime,
    this.createBy,
    this.updateTime,
    this.updateBy,
  });

  int? id;
  int? source;
  int? userId;
  String? name;
  int? idType;
  String? idNo;
  String? mobile;
  String? address;
  dynamic officeTelephone;
  dynamic area;
  double? cost;
  String? commissionRate;
  double? totalIncome;
  double? withdrawalAmount;
  double? ytdIncome;
  int? idleNum;
  int? runningNum;
  int? totalDevNum;
  int? status;
  int? createTime;
  int? createBy;
  int? updateTime;
  dynamic updateBy;

  factory PartnerShipInfoModel.fromJson(Map<String, dynamic> json) => PartnerShipInfoModel(
        id: json["id"],
        source: json["source"],
        userId: json["userId"],
        name: json["name"],
        idType: json["idType"],
        idNo: json["idNo"],
        mobile: json["mobile"],
        address: json["address"],
        officeTelephone: json["officeTelephone"],
        area: json["area"],
        cost: json["cost"],
        commissionRate: json["commissionRate"],
        totalIncome: json["totalIncome"],
        withdrawalAmount: json["withdrawalAmount"],
        ytdIncome: json["ytdIncome"],
        idleNum: json["idleNum"],
        runningNum: json["runningNum"],
        totalDevNum: json["totalDevNum"],
        status: json["status"],
        createTime: json["createTime"],
        createBy: json["createBy"],
        updateTime: json["updateTime"],
        updateBy: json["updateBy"],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "source": source,
        "userId": userId,
        "name": name,
        "idType": idType,
        "idNo": idNo,
        "mobile": mobile,
        "address": address,
        "officeTelephone": officeTelephone,
        "area": area,
        "cost": cost,
        "commissionRate": commissionRate,
        "totalIncome": totalIncome,
        "withdrawalAmount": withdrawalAmount,
        "ytdIncome": ytdIncome,
        "idleNum": idleNum,
        "runningNum": runningNum,
        "totalDevNum": totalDevNum,
        "status": status,
        "createTime": createTime,
        "createBy": createBy,
        "updateTime": updateTime,
        "updateBy": updateBy,
      };
}
